<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/edittable.css"/>
    <link rel="stylesheet" type="text/css" href="css/validate.css"/>
    <script type="text/javascript" src="js/jquery-1.8.0.js"></script>
    <script>
        $(function () {
            $("input[type=text],textarea").focus(function () {
                $(this).addClass("input_focus");
            }).blur(function () {
                $(this).removeClass("input_focus");
            });

            $(".form_btn").hover(function () {
                    $(this).css("color", "red").css("background", "#6FB2DB");
                },

                function () {
                    $(this).css("color", "#295568").css("background", "#BAD9E3");
                });
        });
    </script>
</head>
<body>
<div class="div_title">
    <div class="div_titlename"><img src="images/san_jiao.gif"><span>角色修改</span></div>
</div>

<form action="RoleServlet.do" method="post" >
    <input name="flag" value="updateRole" type="hidden" >
    <input name="id" value="${role.id}" type="hidden" >
    <table class="edit_table" >
        <tr>
            <td class="td_info">角色名称:</td>
            <td class="td_input_short">
                <input class="txtbox" id="roleName" name="roleName" value="${role.roleName}" />
            </td>
            <td>
                <label class="validate_info" id="adminName_msg">4-15位；只限数字(0-9)和英文(a-z),不区分大小写</label>
            </td>
        </tr>

        <tr>
            <td class="td_info">角色描述:</td>
            <td><textarea rows="4" cols="27" name="des" class="txtarea">${role.des}</textarea> </td>
            <td><label></label></td>
        </tr>
        <tr>
            <td class="td_info"> </td>
            <td>
                <input class="form_btn" type="submit" value="提交" />
                <input type="reset"  class="form_btn" value="重置" /> </td>
            <td>
                <label id="result_msg" class="result_msg">${msg}</label>
            </td>
        </tr>
    </table>


</form>

</body>
</html>
